package cn.edu.zsc.rbac.domain.vo;

public class Result {
    public boolean success;
    public String message;
    public Object data;

    public Result() {}

    public Result(boolean success, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public static Result success(String message, Object[] data) {
        return new Result(true, message, data);
    }

    public static Result failure(String s) {
        return new Result(false, s, null);
    }
}